package com.coderxq.blog.web.entity.pojo;

import cn.hutool.json.JSONSupport;
import lombok.Data;
import org.springframework.data.annotation.Id;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

/**
 * @Author: lijingming
 * @Date: 2024/12/10
 * @Description:
 **/
@Data
public class User extends JSONSupport {
    private static final long serialVersionUID = 1L;


    @Id
    @NotEmpty(message = "用户ID不能为空")
    private String userId;

    @NotEmpty(message = "用户名不能为空")
    private String username;


    @NotEmpty(message = "账号不能为空")
    private String account;

    @NotEmpty(message = "密码不能为空")
    private String password;



    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @NotEmpty(message = "是否删除不能为空")
    private int isDelete;
}
